from django.conf.urls import url

from website.views import *


urlpatterns = [
    url(r'^$', IndexView.as_view(), name='index'),
    url(r'article/(?P<id>\d+)$', ArticleDetailView.as_view(), name='article_detail'),
    url(r'article/$', ArticleListView.as_view(), name='article'),
    url(r'login/$', Login.as_view(), name='login'),
    url(r'logout/$', logout, name='logout'),
    url(r'admin/ftp/(?P<path>)', FTPView.as_view(), name='admin_ftp'),
]